<?php
class User_Model_ImageToThing extends Zend_Db_Table{
	protected $_name = 'imagetothing';
	protected $_primary = 'image_id';
	/* Link tham khao : http://framework.zend.com/manual/en/zend.db.table.html */
	/* select demo */
	public function insertImageRelated($data)
	{// co dung
		
		$data['route'] = "insertImageRelated";
		$client = new Zend_Rest_Client(HTTP_SERVICE);
		$return = $client->restPost("/imagetothing", $data);

		return $return->getBody();
	}
}